﻿<Window x:Class="gp.BiztalkHelpers.PipelinesReferenceViewer.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Pipelines References explorer" Height="650" Width="600">
	<StackPanel Orientation="Vertical">
		<GroupBox Header="SQL Connection (app.config)">
			<DockPanel>
				<TextBlock DockPanel.Dock="Left" Name="tbkConnection" />
			</DockPanel>
		</GroupBox>
		
		<Separator Margin="0,10,0,10" />
		
		<GroupBox Header="Pipelines">
			<DockPanel Margin="5,5,5,5">
				<StackPanel Orientation="Horizontal" DockPanel.Dock="Top" Margin="0,5,0,20">
					<ComboBox Name="cmbPpCategory" Width="200" Margin="5,0,20,0" />
					
					<Button Name="btnSearchPipelines" Height="25" Width="75" HorizontalAlignment="Left" Click="btnSearchPipelines_Click">
						<TextBlock Text="Search All" />
					</Button>
				</StackPanel>

				<ListBox Name="lbxPipelines" Width="350" DockPanel.Dock="Left" Margin="5,5,5,5" />

				<StackPanel Orientation="Vertical" DockPanel.Dock="Right" >
					<GroupBox Header="Details">
						<StackPanel Orientation="Vertical">
							<TextBox IsReadOnly="True" 
									Text="{Binding ElementName=lbxPipelines, Path=SelectedItem.FullyQualifiedName}"
									TextWrapping="Wrap"/>
						</StackPanel>
					</GroupBox>

					<Button Name="btnGetPipelinesReferences" Height="25" Width="150" Margin="0,20,0,0"
								Click="btnGetPipelinesReferences_Click">
						<TextBlock Text="Search References" />
					</Button>
				</StackPanel>
			</DockPanel>
		</GroupBox>
		
		<Separator Margin="0,10,0,10" />

		<GroupBox Header="Receive locations">
			<ListBox Name="lbxRcvLoc" Height="100" />
		</GroupBox>
		
		<Separator Margin="0,10,0,10" />
		
		<GroupBox Header="Send ports">
			<ListBox Name="lbxSndPorts" Height="100" />
		</GroupBox>
	</StackPanel>
</Window>
